package com.alpaak.eurekaribbonclient.controller;

import com.alpaak.eurekaribbonclient.service.RibbonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: springboot-demo
 * @className: RibbonController
 * @description:
 * @author: alpaak
 * @create: 2019-05-04 09:47
 **/

@RestController
public class RibbonController {
    @Autowired
    private RibbonService ribbonService;

    @GetMapping("/hi")
    public String hi (@RequestParam(required = false,defaultValue = "alpaak")String name) {
        return ribbonService.hi(name);
    }
}
